﻿using RabbitMQ.Client.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RabbitMQPlugin
{
    public class PublishMessageModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string exchangeName { get; set; }
        public string ququeName { get; set; }
        public string routingKey { get; set; }
        public string exchangeNameD { get; set; }
        public string ququeNameD { get; set; }
        public string routingKeyD { get; set; }
        public string exchangeType { get; set; }
        public string message { get; set; }
        public string expiration { get; set; }

        /// <summary>
        /// 消息未到达队列
        /// </summary>
        public EventHandler<BasicReturnEventArgs> BasicReturn { get; set; }
    }
}
